package com.hdax.dm.common.vo.item;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ItemListVo {

    private Long areaId;
    private Long currentPage;
    private Long pageSize;
    private Long itemTypeId1;
    private Long itemTypeId2;
    private String sort;
    @Field(type = FieldType.Date,format = DateFormat.date_optional_time)
    private Date startTime;
    @Field(type = FieldType.Date,format = DateFormat.date_optional_time)
    private Date endTime;
    private String keyword;
}
